/*
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-13 20:48:19
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-06-22 17:28:49
 * @FilePath: \frontend-ykt-admin\src\api\requestApi\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import _axios from "../axios";

const staff = {
	// 员工列表 医生、咨询师
	staff_list(data) {
	  return _axios({
	    method: "post",
	    url: `api/staff/page_list`,
		data
	  });
	},
	// 员工列表 - 新增
	staff_add(data) {
        return _axios({
          method: "post",
          url: `api/staff`,
          data
        });
    },
    // 员工列表 - 编辑
    staff_edit(data) {
        return _axios({
            method: "put",
            url: `api/staff/${data.id}`,
            data
        });
    },
}

export default staff
